<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/test.js"></script>
<script type="text/javascript" src="js/fun.js"></script>
<script type="text/javascript">
	var bgPage = chrome.extension.getBackgroundPage();

	function saveTabData(tab, data) {
		if (tab.incognito) {
			bgPage[tab.url] = data; // Persist data ONLY in memory
		} else {
			localStorage[tab.url] = data; // OK to store data
		}
	}
</script>
